package com.woniuxy.entity.dto.system;

import com.woniuxy.entity.po.system.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

/**
 * @BelongsProject: charging-management-platform
 * @BelongsPackage: com.woniuxy.entity.dto
 * @Author: Quan
 * @Date: 2025/3/27 10:09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginUserDTO {
	private Long id;
	private String username;
	private String name;
	/**
	 * 权限等级
	 */
	private Integer passLevel;
	/**
	 * 用户头像
	 */
	private String imgSrc;


	public LoginUserDTO(User user) {
		BeanUtils.copyProperties(user, this);
	}
}
